#ifndef _COMMON_H_
#define _COMMON_H_

/*
 * C standard Headers
 */
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <strings.h>
#include <time.h>
#include <assert.h>

/*
 * Linux Headers
 */
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>
#include <signal.h>
#include <pthread.h>
#include <sys/select.h>
// network headers
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>


/*
 * third-libs headers
 */
#include "log.h"
//#include "sqlite3.h"


/*
 * application headers
 */

/*
 * application macros
 */
#define LOG_CONF_FILE "log/ipc.conf"
#define SND_BUF_LEN 1024
#define RCV_BUF_LEN 1024
#define HUNDRED_MSEC 100000 //us
#define SEARCH_TIME 10 // s
#define ZM_SPEC

/*
 * macors depend on specific protocol
 */
#ifdef ZM_SPEC
#define SPEC_LOG ZM_SPEC_LOG
#define SPEC_CAT ZM_SPEC_CAT
#define LOCAL_PORT ZM_LOCAL_PORT
#define BROADCAST_PORT ZM_BROADCAST_PORT
#endif


#endif


